package com.zhuhjay.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 系统配置文件, 与yaml配置文件绑定
 * @author ZhuHJay
 * @date 2022/3/24 20:19
 */
@ConfigurationProperties(prefix = "logging")
public class LoggingSystemProperties {

    /** 系统名称 **/
    private String name;

    /** 资源根路径 **/
    private String profile;

    /** 静态资源目录 **/
    private String staticPath;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public String getStaticPath() {
        return staticPath;
    }

    public void setStaticPath(String staticPath) {
        this.staticPath = staticPath;
    }

    public String getAvatarPath(){
        return getProfile() + getAvatarDir();
    }

    public String getAvatarDir(){
        return "/avatar";
    }
}
